package cn.chengpengper.im.common.domain.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.List;

/*@formatter:off*/

/**
 * ____________________
 * < 神兽护体，永无bug! >
 * --------------------
 *
 * @author huchengpeng
 * @version v1.0.0
 * @date 2024/9/8 18:01
 * @description 接收消息实体
 */

/*@formatter:on*/

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
public class ImReceiveInfo extends TopicMessage {

    private static final long serialVersionUID = -7962158433664656629L;

    /**
     * 命令类型，ImCmdType 枚举的值
     */
    private Integer cmd;

    /**
     * 消息发送者
     */
    private ImUserInfo sender;

    /**
     * 消息接受者列表
     */
    private List<ImUserInfo> receivers;

    /**
     * 是否需要回推发送结果
     */
    private Boolean sendResult;

    /**
     * 消息内容
     */
    private Object data;

}
